package com.jia.commons.exception;

/**
 * @author jia
 * 异常错误
 */
public enum BizCodeEnum {

    VALID_EXCEPTION(10000, "参数校验异常"),
    UN_KNOW_EXCEPTION(10001, "未知错误");

    private Integer code;

    private String message;

    BizCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
